import { delValue, getHValue, getValue, setValue } from './RedisConfig'

setValue('imooc', 'imooc message from redis client')

getValue('imooc').then((res) => {
  console.log('getValue:' + res)
}).catch((err) => {
  console.log('getValue,error:' + err)
});

delValue('imooc')
setValue('imoocobj', {
  name: 'zbl',
  email: '95605355@qq.com',
  age: 30
})

getHValue('imoocobj').then((res) => {
  console.log('getHValue:' + JSON.stringify(res))
})